package com.example.springssm.service;

import com.example.springssm.bean.Employee;
import com.example.springssm.common.PageResult;

import java.util.List;

public interface EmployeeService {
    /**
     * 根据id查询员工
     * @param id
     * @return
     */
    Employee getEmployeeById(Long id);
    /**
     * 查询所有员工
     * @return
     */
    List<Employee> getAllEmployees();
    /**
     * 新增员工
     * @param employee
     */
    void addEmployee(Employee employee);
    /**
     * 更新员工
     * @param employee
     */
    void updateEmployee(Employee employee);
    /**
     * 删除员工
     * @param id
     */
    void deleteEmployee(Long id);
    PageResult<Employee> getEmployeesByPage(int pageNum, int pageSize); // 分页查询

}
